<template>
  <div id="app">
    <div id="nav">
      <router-link v-for="item in router_arr" :to="item.path" :key="item.name">
        &nbsp;&nbsp;{{ item.name }}
      </router-link>
      <!-- <NavMenu /> -->
    </div>
    <!-- <v-mini-weather></v-mini-weather> -->
    <router-view />
  </div>

  <!-- node f.js /Users/wangkai/Desktop/测试/demo_topTree/src/utils bb -c -->
</template>
<script>
import router from '@/router/index.js';
import NavMenu from '@/components/NavMenu';
export default {
  name: '',
  components: {
    NavMenu,
  },
  data() {
    return {
      router_arr: [],
    };
  },
  mounted() {
    this.router_arr = router.options.routes;
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
